package com.cande.loki.exercise.testspring;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @auther ROCK CODER
 * @DATE 2022/6/16 21:26
 * @Description
 */
@Component("FF")
public class TestFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        return new User3();
    }

    @Override
    public Class<?> getObjectType() {
        return User3.class;
    }
}
